package net.godcode.t5c.flickr.services;

import org.apache.tapestry.ioc.Configuration;
import org.apache.tapestry.services.LibraryMapping;
import org.slf4j.Logger;

/**
 * The module for OliveNotes-Flickr integration.
 * 
 * @author Chris Lewis 24/gen/08 <chris@thegodcode.net>
 * @version $Id$
 */
public class OliveNotesFlickrModule {
	
	private final Logger log;
	
	public OliveNotesFlickrModule(Logger log) {
		this.log = log;
	}
	
	/*
	public static void bind(ServiceBinder binder) {
		binder.bind(FlickrManager.class, FlickrManagerImpl.class);
	}
	*/
	
	public void contributeComponentClassResolver(Configuration<LibraryMapping> configuration) {
		configuration.add(new LibraryMapping("", "net.godcode.t5c.flickr"));
		log.error("Successfully added component library! Components available under the 'oln' namespace.");
	}
	
}